<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/WEB-INF/jsp/include/head.jsp"%>
<title>添加服装信息</title>
<script type="text/javascript">
	$(function(){
		$addForm = $("#form");
		$addForm.submit(function(){
			//判断是否为空值
						
		})
	});
</script>
</head>
<body>
	<%@ include file="/WEB-INF/jsp/include/top.jsp"%>
	<%@ include file="/WEB-INF/jsp/include/left.jsp"%>
	<div class="main col-lg-9 col-md-9 col-xs-12 col-sm-12">
		<form action="product/add" method="post" enctype="multipart/form-data" id="form">
			<input type="hidden" name="user_id" value="<%=user.getId()%>">
			<table class="table col-lg-12 col-md-12 col-xs-12 col-sm-12"> 
				<tr>
					<th>服装名称:</th>
					<td><input type="text" name="name" value="" placeholder="服装名称"></td>
				</tr>
				<tr>
					<th>服装描述:</th>
					<td><input type="text" name="description" value=""
						placeholder="服装描述"></td>
				</tr>
				<tr>
					<th>服装原价:</th>
					<td><input type="text" name="preprice" value=""
						placeholder="服装原价"></td>
				</tr>
				<tr>
					<th>服装现价:</th>
					<td><input type="text" name="price" value=""
						placeholder="服装现价"></td>
				</tr>
				<tr>
					<th>库存数量:</th>
					<td><input type="text" name="num" value="" placeholder="库存数量"></td>
				</tr>
				<tr>
					<th>服装类别:</th>
					<td><input type="text" name="kind_id" value="" placeholder="服装类别"></td>
				</tr>
				<tr>
					<th>链接地址:</th>
					<td><input type="text" name="url" value="" placeholder="链接地址"></td>
				</tr>
				<tr id="imagetr" class="imagetr">
					<th>服装图片:</th>
					<td><input type="file" name="pictures" class="pictures"></td>
					<td>
					<label id="add_image" class="btn im_oper">添加</label>
						<label id="delete_image" class="btn im_oper">删除</label>
<%-- 					<img src="<%=basePath%>/resources/images/add.gif" id="add_image"></img> --%>
<%-- 					<img src="<%=basePath%>/resources/images/delete.png" id="delete_image"></img></td> --%>
				</tr>
				<tr>
					<td><input type="submit" class="btn" value="确认提交"></td>
					<td><input type="reset" class="btn" value="重新填写"></td>
				</tr>
			</table>
		</form>
	</div>
	<%@ include file="/WEB-INF/jsp/include/bottom.jsp"%>
</body>
</html>